package com.pctx.registerlogin.service;

import com.pctx.common.result.Result;

public interface UserService {
    Result addDepartment(String departmentname,String username);
//    Result addPosition(String positionname,String departmentname,String username);
    Result addPositionone(String positionname,String departmentuuid,String username);
    Result selectDepartment(String username);
//    Result selectPosition(String username,String departmentname);
    Result selectPosition(String username,String departmentuuid);
    //Result addUser(String username,String name,String mobile,String mail,String sex,String departmentname,String positionname,String upperleader,String subordinate,String loginuser);
    Result addUser(String username,String name,String mobile,String mail,String sex,String departmentuuid,String positionuuid,String upperleader,String subordinate);

    Result deleteUser(String username);
    Result updateUser(String username,String name,String mobile,String mail,String sex,String departmentuuid,String positionuuid,String upperleaderuuid,String subordinate);
    Result resetPassword(String username);
    Result hassubordinate(String loginuser);
    Result personalMessage(String username)throws Exception;
}
